package com.example.backend.service;

import com.example.backend.entity.Customer;

import java.util.List;

public interface CustomerService {
    //添加
    Customer save(Customer Customer);

    //全体查询
    List<Customer> findAll();

    //查询

    List<Customer> findByName(String name);
    List<Customer> findByIdentity(String identity);
    List<Customer> findByAge(Integer age);
    List<Customer> findByAddress(String address);
    List<Customer> findByPhone(String phone);
    List<Customer> findById(Integer id);

    boolean findName(String name);
    boolean findNameAndId(Integer id,String name);

    //删除
    void delete (Integer id);

    //修改
    Customer update(Customer Customer);
}
